<?php

namespace App\Models;

use DateTimeInterface;

class DocumentModel extends RbhBaseModel
{
    protected $table = 'document';
    protected $guarded = [];

    /**
     * @param DateTimeInterface $date
     * @return string
     */
    protected function serializeDate(DateTimeInterface $date): string
    {
        return $date->format($this->dateFormat ?: 'Y-m-d H:i:s');
    }
}
